﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200080B RID: 2059
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetRollShopInfoScRsp : IMessage<GetRollShopInfoScRsp>, IMessage, IEquatable<GetRollShopInfoScRsp>, IDeepCloneable<GetRollShopInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001A1E RID: 6686
		// (get) Token: 0x06005C50 RID: 23632 RVA: 0x000F75C7 File Offset: 0x000F57C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetRollShopInfoScRsp> Parser
		{
			get
			{
				return GetRollShopInfoScRsp._parser;
			}
		}

		// Token: 0x17001A1F RID: 6687
		// (get) Token: 0x06005C51 RID: 23633 RVA: 0x000F75CE File Offset: 0x000F57CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetRollShopInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A20 RID: 6688
		// (get) Token: 0x06005C52 RID: 23634 RVA: 0x000F75E0 File Offset: 0x000F57E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetRollShopInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06005C53 RID: 23635 RVA: 0x000F75E7 File Offset: 0x000F57E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRollShopInfoScRsp()
		{
		}

		// Token: 0x06005C54 RID: 23636 RVA: 0x000F75FC File Offset: 0x000F57FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRollShopInfoScRsp(GetRollShopInfoScRsp other) : this()
		{
			this.rollShopId_ = other.rollShopId_;
			this.shopGroupIdList_ = other.shopGroupIdList_.Clone();
			this.gachaRandom_ = other.gachaRandom_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005C55 RID: 23637 RVA: 0x000F7655 File Offset: 0x000F5855
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRollShopInfoScRsp Clone()
		{
			return new GetRollShopInfoScRsp(this);
		}

		// Token: 0x17001A21 RID: 6689
		// (get) Token: 0x06005C56 RID: 23638 RVA: 0x000F765D File Offset: 0x000F585D
		// (set) Token: 0x06005C57 RID: 23639 RVA: 0x000F7665 File Offset: 0x000F5865
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RollShopId
		{
			get
			{
				return this.rollShopId_;
			}
			set
			{
				this.rollShopId_ = value;
			}
		}

		// Token: 0x17001A22 RID: 6690
		// (get) Token: 0x06005C58 RID: 23640 RVA: 0x000F766E File Offset: 0x000F586E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> ShopGroupIdList
		{
			get
			{
				return this.shopGroupIdList_;
			}
		}

		// Token: 0x17001A23 RID: 6691
		// (get) Token: 0x06005C59 RID: 23641 RVA: 0x000F7676 File Offset: 0x000F5876
		// (set) Token: 0x06005C5A RID: 23642 RVA: 0x000F767E File Offset: 0x000F587E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaRandom
		{
			get
			{
				return this.gachaRandom_;
			}
			set
			{
				this.gachaRandom_ = value;
			}
		}

		// Token: 0x17001A24 RID: 6692
		// (get) Token: 0x06005C5B RID: 23643 RVA: 0x000F7687 File Offset: 0x000F5887
		// (set) Token: 0x06005C5C RID: 23644 RVA: 0x000F768F File Offset: 0x000F588F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005C5D RID: 23645 RVA: 0x000F7698 File Offset: 0x000F5898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetRollShopInfoScRsp);
		}

		// Token: 0x06005C5E RID: 23646 RVA: 0x000F76A8 File Offset: 0x000F58A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetRollShopInfoScRsp other)
		{
			return other != null && (other == this || (this.RollShopId == other.RollShopId && this.shopGroupIdList_.Equals(other.shopGroupIdList_) && this.GachaRandom == other.GachaRandom && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005C5F RID: 23647 RVA: 0x000F7718 File Offset: 0x000F5918
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RollShopId != 0U)
			{
				num ^= this.RollShopId.GetHashCode();
			}
			num ^= this.shopGroupIdList_.GetHashCode();
			if (this.GachaRandom != 0U)
			{
				num ^= this.GachaRandom.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005C60 RID: 23648 RVA: 0x000F7797 File Offset: 0x000F5997
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005C61 RID: 23649 RVA: 0x000F779F File Offset: 0x000F599F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005C62 RID: 23650 RVA: 0x000F77A8 File Offset: 0x000F59A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.shopGroupIdList_.WriteTo(ref output, GetRollShopInfoScRsp._repeated_shopGroupIdList_codec);
			if (this.RollShopId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.RollShopId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GachaRandom != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.GachaRandom);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005C63 RID: 23651 RVA: 0x000F7830 File Offset: 0x000F5A30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RollShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RollShopId);
			}
			num += this.shopGroupIdList_.CalculateSize(GetRollShopInfoScRsp._repeated_shopGroupIdList_codec);
			if (this.GachaRandom != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaRandom);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005C64 RID: 23652 RVA: 0x000F78B4 File Offset: 0x000F5AB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetRollShopInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RollShopId != 0U)
			{
				this.RollShopId = other.RollShopId;
			}
			this.shopGroupIdList_.Add(other.shopGroupIdList_);
			if (other.GachaRandom != 0U)
			{
				this.GachaRandom = other.GachaRandom;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005C65 RID: 23653 RVA: 0x000F7929 File Offset: 0x000F5B29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005C66 RID: 23654 RVA: 0x000F7934 File Offset: 0x000F5B34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 18U)
				{
					if (num == 16U || num == 18U)
					{
						this.shopGroupIdList_.AddEntriesFrom(ref input, GetRollShopInfoScRsp._repeated_shopGroupIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 24U)
					{
						this.RollShopId = input.ReadUInt32();
						continue;
					}
					if (num == 32U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.GachaRandom = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040023AE RID: 9134
		private static readonly MessageParser<GetRollShopInfoScRsp> _parser = new MessageParser<GetRollShopInfoScRsp>(() => new GetRollShopInfoScRsp());

		// Token: 0x040023AF RID: 9135
		private UnknownFieldSet _unknownFields;

		// Token: 0x040023B0 RID: 9136
		public const int RollShopIdFieldNumber = 3;

		// Token: 0x040023B1 RID: 9137
		private uint rollShopId_;

		// Token: 0x040023B2 RID: 9138
		public const int ShopGroupIdListFieldNumber = 2;

		// Token: 0x040023B3 RID: 9139
		private static readonly FieldCodec<uint> _repeated_shopGroupIdList_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x040023B4 RID: 9140
		private readonly RepeatedField<uint> shopGroupIdList_ = new RepeatedField<uint>();

		// Token: 0x040023B5 RID: 9141
		public const int GachaRandomFieldNumber = 12;

		// Token: 0x040023B6 RID: 9142
		private uint gachaRandom_;

		// Token: 0x040023B7 RID: 9143
		public const int RetcodeFieldNumber = 4;

		// Token: 0x040023B8 RID: 9144
		private uint retcode_;
	}
}
